package com.ketangpai.entity.response;


import io.swagger.annotations.ApiModelProperty;


public class JSONResult<T> {
    public JSONResult() {
    }

    public JSONResult(String status, String message, Integer totalCount,T data) {
        this.status = status;
        this.message = message;
        this.totalCount = totalCount;
        this.data = data;
    }

    public JSONResult(T data) {
        this.data = data;
    }

    /**
     * 消息
     */
    @ApiModelProperty(value = "消息", name = "message", dataType = "String")
    private Object message;

    /**
     * status
     */
    @ApiModelProperty(value = "状态", name = "status", dataType = "String")
    private String status;

    /**
     * 分页大小
     */
    @ApiModelProperty(value = "分页大小", name = "pageSize", dataType = "Integer")
    private Integer pageSize = 10;

    /**
     * 总记录数
     */
    @ApiModelProperty(value = "总记录数", name = "totalCount", dataType = "Integer")
    private Integer totalCount;

    /**
     * 返回数据
     */
    @ApiModelProperty(value = "返回数据", name = "data", dataType = "Object")
    private T data;

    /**
     * 返回 消息
     */
    public Object getMessage() {
        return message;
    }

    /**
     * 设置 消息
     */
    public void setMessage(String  message) {
        this.message = message;
    }
    /**
     * 返回 返回数据
     */
    public T getData() {
        return data;
    }

    /**
     * 设置 返回数据
     */
    public void setData(T data) {
        this.data = data;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount= totalCount;
    }
}
